which of the following will produce an answer that is closest in value to a double , d. while not being greater than d?
Created: 7 years ago |
Updated: 6 months ago
Updated: 6 months ago
-
ক
(int) Math . min (d);
-
খ
(int)Math. max(d);
-
গ
(int)Math .abs (d);
-
ঘ
(int)Math.Floor(d);
উত্তরঃ
Description
The method floor gives the largest integer that is less than or equal to the argument.
Syntax
This method has the following variants −
double floor(double d)
double floor(float f)
Parameters
Here is the detail of parameters −
A double or float primitive data type.
Return Value
This method returns the largest integer that is less than or equal to the argument. Returned as a double.
Example
Live Demo
public class Test {
public static void main(String args[]) {
double d = - 100.675;
float f = - 90;
System.out.println(Math.floor(d));
System.out.println(Math.floor(f));
System.out.println(Math.ceil(d));
System.out.println(Math.ceil(f));
}
}
This will produce the following result −
Output
- 101.0
- 90.0
- 100.0
- 90.0
Azizar Rahman Aziz
7 years ago
শিক্ষকদের জন্য বিশেষভাবে তৈরি
১ ক্লিকে প্রশ্ন, শীট, সাজেশন ও
অনলাইন পরীক্ষা তৈরির সফটওয়্যার!
শুধু প্রশ্ন সিলেক্ট করুন — প্রশ্নপত্র অটোমেটিক তৈরি!
প্রশ্ন এডিট করা যাবে
জলছাপ দেয়া যাবে
ঠিকানা যুক্ত করা যাবে
Logo, Motto যুক্ত হবে
অটো প্রতিষ্ঠানের নাম
অটো সময়, পূর্ণমান
প্রশ্ন এডিট করা যাবে
জলছাপ দেয়া যাবে
ঠিকানা যুক্ত করা যাবে
Logo, Motto যুক্ত হবে
অটো প্রতিষ্ঠানের নাম
অটো সময়, পূর্ণমান
অটো নির্দেশনা (এডিটযোগ্য)
অটো বিষয় ও অধ্যায়
OMR সংযুক্ত করা যাবে
ফন্ট, কলাম, ডিভাইডার
প্রশ্ন/অপশন স্টাইল পরিবর্তন
সেট কোড, বিষয় কোড
অটো নির্দেশনা (এডিটযোগ্য)
অটো বিষয় ও অধ্যায়
OMR সংযুক্ত করা যাবে
ফন্ট, কলাম, ডিভাইডার
প্রশ্ন/অপশন স্টাইল পরিবর্তন
সেট কোড, বিষয় কোড
Related Question
মাত্র ১৫ পয়সায় প্রশ্নপত্র
১ ক্লিকে প্রশ্ন, শীট, সাজেশন তৈরি করুন আজই
Question Analytics
মোট উত্তরদাতা
জন
সঠিক
ভুল
উত্তর নেই